package com.guodi.map.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @描述：附件/目录信息表
 * @作者: 代鹏刚
 * @日期: 2021-01-19
 */
@Data
@ApiModel(value="附件/目录信息表")
public class MapProjectFile implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id")
    private String id;

    @ApiModelProperty(value = "附件/目录名称")
    private String name;

    @ApiModelProperty(value = "类型（1：目录，2：附件）")
    private Integer type;

    @ApiModelProperty(value = "上级目录id")
    private String parentId;

    @ApiModelProperty(value = "附件大小")
    private Double fileSize;

    @ApiModelProperty(value = "附件格式")
    private String fileFormat;

    @ApiModelProperty(value = "附件路径")
    private String filePath;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "序号")
    private Integer sort;

    @ApiModelProperty(value = "专题id")
    private String projectId;

    @ApiModelProperty(value = "备用字段1")
    private String memo1;

    @ApiModelProperty(value = "备用字段2")
    private String memo2;

    @ApiModelProperty(value = "创建人")
    private String creator;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "修改人")
    private String modifier;

    @ApiModelProperty(value = "修改时间")
    private Date modifyTime;

    @ApiModelProperty(value = "当前目录等级",hidden = true)
    @TableField(exist = false)
    private Integer treeLevel;

    @ApiModelProperty(value = "子节点",hidden = true)
    @TableField(exist = false)
    private List<MapProjectFile> children;
}
